<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$url = 'catalog';
	if (sizeof($pages) > 0) {
		foreach ($pages as $page) {
			//$item_link = $this->catalog_service_model->get_item_link($page['item_id']);
			//echo "<div class='one-small-item'>";
			echo "<h4>".$page['opinion_name']." (".showmedate($page['opinion_date']).")</h4>";
				//echo "<a href='".$item_link."#opinion_".$page['opinion_id']."'>".$page['item_title']."</a><br />";
				preg_match_all("/\[quote\sname\=\"(.*?)\"\]([^\[]*?)\[\/quote\]/isx", $opinion_text, $matches, PREG_SET_ORDER);
				foreach ($matches as $match) {
					$page['opinion_text'] = str_replace($match[0], "", $page['opinion_text']);
				}
				echo htmlspecialchars_decode($page['opinion_shop'])."...<br />";

				echo "<br class='cc'/>";
//			echo "</div>";
		}
	} else {
		echo showmenotice('Список пуст');
	}
?>
